/**
 * @(#)TempMiguUserServiceImpl.java 2017年2月21日
 * Copyright(C) 2017 ZHEXIN IT CO.,LTD. All rights reserved.
 */
package org.jsbd.boss.service.impl;

import org.jsbd.boss.domian.channel.MiguUser;
import org.jsbd.boss.domian.channel.ThirdUserQueryVo;
import org.jsbd.boss.enums.LoginTypeEnum;
import org.jsbd.boss.enums.MiguTableEnum;
import org.jsbd.boss.util.CacheKey;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 咪咕视频账号
 *
 * @author <a href="mailto:xupengcheng@zhexinit.com" >徐鹏程</a>
 * @version 1.0.0
 */
@Service("miguVedioUser2Service")
public class MiguVedioUser2ServiceImpl extends ThirdLoginAdapterHandler<MiguUser> {


    /*
     * (non-Javadoc)
     *
     * @see org.jsbd.boss.service.impl.ThirdLoginAdapterHandler#init()
     */
    @Override
    public boolean init() {
        loginIndexKey = CacheKey.MIGU_VEDIO_USR_APK2;
        loginType = LoginTypeEnum.MIGU_VEDIO2;
        queueKey = CacheKey.MIGU_VEDIO_USER_QUEUE2;
        return true;
    }

    /*
     * (non-Javadoc)
     *
     * @see org.jsbd.boss.service.impl.ThirdLoginAdapterHandler#selectUserList(org
     * .jsbd.boss.domian.channel.ThirdUserQueryVo)
     */
    @Override
    public List<MiguUser> selectUserList(ThirdUserQueryVo queryVo) {
        queryVo.setTableName(MiguTableEnum.MIGU_VEDIO2.getCode());
        queryVo.setLoginType(loginType);
        return selectMiguUserList(queryVo);
    }

}
